package com.ganbo.pattern.builder;

/**
 * @Author: ganbo
 * @Date: 2020/6/9 12:27
 */
public class App {

    public static void main(String[] args) {
        ComputerBuilder computerBuilder = new ComputerConcreteBuilder();
        Computer computer = computerBuilder
                .buildCpu("Intel")
                .buildMemory("三星")
                .buildDisk("金士顿")
                .build();
        System.out.println(computer);
    }
}
